import request from '@/utils/request'
import request2,{getdata} from '@/utils/seleRequest'

export function insert(data) {
    return request({
        url: '/api/server/sysMyDownload/insert',
        method: 'post',
        data
    })
}


export function update(data) {
    return request({
        url: '/api/server/sysMyDownload/update',
        method: 'post',
        data
    })
}

export function queryByPage() {
    let select= 'srvjk_my_download_select'
  return request2({
      url: `/${select}?${select}`,
      method: 'post',
      data:getdata(select,[],1,5)
  })
}


export function deleteById(params) {
    return request({
        url: '/api/server/sysMyDownload/deleteById',
        method: 'get',
        params
    })
}
